﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public enum NPCleixing
    {
        renwu,
        shangdian,
        tiejiang
    }
    abstract class NPC
    {
        private string name;
        private NPCleixing leixing;

        public string name1
        {
            get => name; set => name = value;
        }
        public NPCleixing leixing1
        {
            get => leixing; set => leixing = value;
        }
        public NPC()
        {

        }
        public NPC(string name, NPCleixing Leixing)
        {
            this.name = name;
            this.leixing = Leixing;
        }
        public abstract void Speak();
    
    }
}
